package main

import (
	"fmt"
	"time"
)

type Node struct {
	Exit chan bool
}


func (node *Node) Close() {
	times := 0
	for {
		if times >= 5 {
			node.Exit <- true
		}
		fmt.Println("ignore")
		time.Sleep(4 *time.Second)
		times++

	}
}

func (node *Node) Bootstrap() {
	<-node.Exit
}

